import Mock from 'mockjs'
import { getToken } from './datas/login'
import { menuList } from './datas/menu'
import { tblList } from './datas/tbl'
import { orderList } from './datas/order'
import { lineData } from './datas/line'
import { barData } from './datas/bar'
import { pieData } from './datas/pie'
import userApi from './datas/user'

Mock.mock('/permission/getToken', getToken);
Mock.mock('/permission/getMenu', menuList);
Mock.mock('/permission/getTblData', tblList);
Mock.mock('/permission/getOrders', orderList);
Mock.mock('/permission/getLineData', lineData);
Mock.mock('/permission/getBarData', barData);
Mock.mock('/permission/getPieData', pieData);
Mock.mock('/user/getUserList', 'get', userApi.getUserList);
Mock.mock('/user/add', 'post', userApi.createUser);
Mock.mock('/user/edit', 'post', userApi.editUser);
Mock.mock('/user/delete', 'post', userApi.delUser);